package com.cn.mmd.service;

import com.cn.mmd.model.Activity;

/**
 * Created by Administrator on 2016/7/27 0027.
 */
public interface ManageActivityService {

    /**
     * 动态添加
     * @param record
     * @return
     */
    int insertSelective(Activity record);

    /**
     * 根据全部判断是否重复
     * @param activity
     * @return
     */
    Activity selectByAll(Activity activity);

    /**
     * 动态修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Activity record);

    /**
     * 根据主键删除
     * @param activityid
     * @return
     */
    int deleteByPrimaryKey(Integer activityid);

    /**
     * 删除学生活动关联
     * @param activityId
     * @return
     */
    int deleteByActId(Integer activityId);

    /**
     * 根据活动条件聚合
     * @param activity
     * @return
     */
    int countLimitNum(Activity activity);
}
